package nyist.media.bean.auth;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import nyist.media.bean.BaseBean;
import nyist.media.entity.admin.MenuAuth;

/**
 * 选项
 *
 * @author wangshuai
 * @date 2018/12/23
 */
@Getter
@Setter
@NoArgsConstructor
public class MenuOptionBean extends BaseBean {
    private static final long serialVersionUID = 6241874323031751783L;

    /**
     * 权限名称
     */
    private String name;

    /**
     * 菜单等级
     */
    private Integer grade;

    public MenuOptionBean(MenuAuth menuAuth) {
        setId(menuAuth.getId());
        this.name = menuAuth.getName();
        this.grade = menuAuth.getGrade();
    }
}
